package com.three.crm.bean;


import android.os.Parcel;
import android.os.Parcelable;

public class EventBean implements Parcelable {

    private int type;
    private String message;
    private int todoNum;
    private int doneNum;

    public EventBean() {
    }

    public EventBean(int type, String message, int todoNum, int doneNum) {
        this.type = type;
        this.message = message;
        this.todoNum = todoNum;
        this.doneNum = doneNum;
    }

    protected EventBean(Parcel in) {
        type = in.readInt();
        message = in.readString();
        todoNum = in.readInt();
        doneNum = in.readInt();
    }

    public static final Creator<EventBean> CREATOR = new Creator<EventBean>() {
        @Override
        public EventBean createFromParcel(Parcel in) {
            return new EventBean(in);
        }

        @Override
        public EventBean[] newArray(int size) {
            return new EventBean[size];
        }
    };

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTodoNum() {
        return todoNum;
    }

    public void setTodoNum(int todoNum) {
        this.todoNum = todoNum;
    }

    public int getDoneNum() {
        return doneNum;
    }

    public void setDoneNum(int doneNum) {
        this.doneNum = doneNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(type);
        dest.writeString(message);
        dest.writeInt(todoNum);
        dest.writeInt(doneNum);
    }
}
